{include file="steps/headStep.tpl"}

<h2 class="bigger">Pré Visualização das Actions e Views</h2>

<table class="table" cellspacing="0" width="100%">
    <thead>
        <tr>
            <th scope="col">Tabela</th>
            <th scope="col" class="table-actions">Visualizar</th>
        </tr>
    </thead>

{foreach $tablesMeta as $tb}
    {$tbName = $tb->getName()}
            
        <tr>
            <td>{$tbName|capitalize}</td>
            {if $tb->isCrud()}
                <td>

                    <a href="javascript:void(0);" title="Visualizar Action" class="with-tip" onclick="loadClass('action','{$tbName}')">Action</a>
                    <br/>

                    Views(<a href="javascript:void(0);" title="Visualizar view/{$tbName}/cadastro.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','cadastro')">cadastro</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/formInclude.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','formInclude')">formInclude</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/formCombo.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','formCombo')">formCombo</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/listar.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','listar')">listar</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/tabela.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','tabela')">tabela</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/formBusca.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','formBusca')">formBusca</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/detalhes.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','detalhes')">detalhe</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/detalhesInclude.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','detalhesInclude')">detalhesInclude</a>)

                </td>
            {else}
                <td>                    
                    Views(<a href="javascript:void(0);" title="Visualizar view/{$tbName}/formInclude.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','formInclude')">formInclude</a> |
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/formCombo.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','formCombo')">formCombo</a> |                    
                    <a href="javascript:void(0);" title="Visualizar view/{$tbName}/detalhesInclude.tpl" class="with-tip" onclick="loadClass('view','{$tbName}','detalhesInclude')">detalhesInclude</a>)
                </td>
            {/if}
       </tr>
   
 {/foreach}

</table>

